#ifndef BOX3_H
#define BOX3_H

#include "Vec3.h"
#include <assert.h>

namespace Engine
{
	class AABB
	{
		public:
			Vec3 min, max;

			AABB(){}

			AABB(const Vec3& _min, const Vec3& _max):min(_min), max(_max){}

			//clockwise winding order
			//back corners first
			//starting from top right
			//0 to 7 corners
			//0------1
			//|\     |\
			//| 4----+-5
			//2-+----3 |
			// \|     \|
			//  6------7
			Vec3 GetCorner(unsigned int n) const;

			Vec3& operator[](unsigned int minOrMax);
	};
}

#endif
